package cn.wolfcode.luowowo.article.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor

public class CommunityAnswerVO implements Serializable {

    private String id;  //spring - data 默认封装成 ObjectId
    private Long detailId;  //社区问答 id
    private String title; //社区问答标题
    private String content;      //社区问答内容

    private Long userId;    //用户id
    private String username;  //用户名
    private String city;
    private int level;
    private String headUrl;     //头像
    private Date createTime;    //创建时间
    private Integer thumbupnum; //点赞数量
    private Integer replynum = 0;  //回复数
    private Integer viewnum = 0;   //浏览数

}
